import request from '@/utils/axios'

export function getJenkinsList(params) {
  let url = '/jenkins/listAllConfig'
  return request(url, {
    method: 'GET',
    params: params
  })
}

export function addConfig(params) {
  let url = '/jenkins/saveConfig'
  return request(url, {
    method: 'POST',
    body: params
  })
}

export function editConfig(params) {
  let url = '/jenkins/editConfig'
  return request(url, {
    method: 'POST',
    body: params
  })
}

export function delConfig(params) {
  let url = '/jenkins/deleteConfig'
  return request(url, {
    method: 'POST',
    body: params
  })
}
